//-----------------------------------------------------------------------
// <copyright file="a_CouponService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_CouponService
    {
        #region a_Coupon

        public static void Createa_Coupon(a_Coupon a_Coupon)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                a_CouponDAO.Createa_Coupon(a_Coupon);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Coupon(a_Coupon a_Coupon)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                a_CouponDAO.Updatea_Coupon(a_Coupon);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Coupon(int couponID)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                a_CouponDAO.Deletea_Coupon(couponID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Coupon Geta_Coupon(int couponID)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                return a_CouponDAO.Geta_Coupon(couponID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_CouponCollection Geta_CouponList(a_CouponColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                return a_CouponDAO.Geta_CouponList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_CouponCollection Geta_CouponList(a_CouponColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_CouponDAO a_CouponDAO = new a_CouponDAO();
                return a_CouponDAO.Geta_CouponList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}